﻿using Rhino.Display;
using Rhino.Geometry;
using System.Drawing;

namespace AiMoInGH.ScriptInstance.Preview
{
    class PreviewVector : PreviewObject
    {
        readonly Line line;
        public PreviewVector(Vector3d vec, Point3d pt, Color color) : base(color)
        {
            line = new Line(pt, vec + pt);
            ClippingBox = line.BoundingBox;
        }

        public override void Draw(DisplayPipeline display)
        {
            display.DrawArrow(line, DrawColor);
        }
    }
}
